{{extend './_layouts/home.html'}}

{{block 'title'}}{{'多人博客 - 首页'}}{{/block}}

{{block 'body'}}
<section class="container">
  <ul class="media-list">
    <!-- 模板循环topic内容 -->

    {{ each topics }}
    <li class="media">
      <div class="media-left">
        <a href="#">
          <img width="40" height="40" class="media-object" src="../public/img/avatar-max-img.png" alt="...">
        </a>
      </div>
      <div class="media-body">
        <h4 class="media-heading">
          <a href="/topics/show?_id={{ $value.id }}">
            {{ $value.nickname }}
          </a>
        </h4>
        <p>
          sueysok 回复了问题 •
          <span>{{ $value.messages }}个回复 • </span>
          <span>{{ $value.watch }}次浏览 • </span>
          <span>发表时间:{{ $value.created_Date }}</span>
        </p>
      </div>
    </li>
    {{ /each }}


  </ul>

</section>
{{/block}}

